<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head>
	<title>Login</title>
<style type="text/css">
			@import url("../travel.css");
			@import url("../user.css");
</style>
</h:head>
<h:body>
<div id='landmark'>		
			<h:form>	
				<div id='linkContainer'><li><a href="../index.xhtml">Home</a></li></div>
			  	<div id='linkContainer'><li>
			  		<h:link outcome="../admin/index.xhtml"  value="Login amministratori"></h:link>
				</li></div>
				<div id='linkContainer'><li><h:link outcome="../user/index?user=true"  value="Login utenti"></h:link></li></div>
			
				
			</h:form>
		</div>
		
		<div id='logoContainer'>
			<img src='../images/company-logo.jpg' width="180" height="150" />
		</div>

    <div id='boxUserContainer'>
	<form name="loginForm" method="post" action="j_security_check">
	Username: <input type="text" name="j_username" />
	Password: <input type="password" name="j_password" />
	<input type="submit" value="login" />
	<input type="reset" value="reset" />
	</form>
	<h:form rendered = "#{param['user']}">
		<h:link value = "Register" outcome = "registration" />
	</h:form>	
	</div>
</h:body>
</html>